package edu.zut.cs.software.estateagent.contract.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.contract.domain.MapSearch;
import edu.zut.cs.software.estateagent.contract.service.MapSearchManager;
@CrossOrigin(origins = "*")
@Controller
@RequestMapping("/contract/map_search")
public class MapSearchController extends GenericController<MapSearch, Long, MapSearchManager> {
	MapSearchManager mapsearchManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/mapsearch/index";
		return result;
	}

	@Autowired
	public void setMapSearchManager(MapSearchManager mapsearchManager) {
		this.mapsearchManager = mapsearchManager;
		this.manager = this.mapsearchManager;
	}
}
